package com.hermes.biz.service.user;

import java.util.List;

import com.hermes.biz.common.model.base.EventBaseDO;
import com.hermes.biz.common.model.message.MessageInfoDO;


public interface UserMessageService {


	/**
	 * 
	 * @param userId
	 * @param type
	 * @return
	 */
	public long getUserNewMessageByType(long userId , int type);
	
	/**
	 * 
	 * @param userId
	 * @return
	 */
	public List<MessageInfoDO> getUserNewMessageByUserId(long userId);
	
	/**
	 * 
	 * @param userId
	 * @return
	 */
	public long getUserMessageCountByUserId(long userId);
	
	/**
	 * 
	 * @param userId
	 * @param type
	 * @return
	 */
	public List<MessageInfoDO> getUserMessageByType(long userId , int type);
	
	/**
	 * 
	 * @param event
	 * @return
	 */
	public boolean saveMessageEventInfo(EventBaseDO event);
}
